/*
 * Copyright (c) 2024 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef LM75_H
#define LM75_H

#include "interface/i_chip.h"
#include "internal/bus/bus_base/bus.h"
#include "internal/chip/chip_base/chip.h"
#include "internal/manager.h"
#include <mc/engine.h>

namespace dev {

class lm75_object : public mc::engine::object<lm75_object> {
public:
    MC_OBJECT(lm75_object, "Lm75", "${object_name}", (Interface_Chip))

    lm75_object()  = default;
    ~lm75_object() = default;

    bool     init(mc::mutable_dict& csr_object, const mc::dict& connector);
    uint32_t start();
    uint32_t stop();

    Interface_Chip m_interface_chip;
};

} // namespace dev

#endif // LM75_H